#ifndef FILE_SDLfunctions_H
#define FILE_SDLfunctions_H

#include <math.h>
#include "SDL/SDL.h"
#include "SDL/SDL_ttf.h"

#include "position_t.h"

SDL_Surface* init_screen(char *title, int width, int height);

bool lock_screen(SDL_Surface *screen);
bool unlock_screen(SDL_Surface *screen);

void clear_screen(SDL_Surface *screen);

void draw_pixel(SDL_Surface *screen, position_t pixel, Uint32 color);
void draw_line(SDL_Surface *screen, position_t p1, position_t p2, Uint32 color);
void draw_rect(SDL_Surface *screen, position_t p1, position_t p2, Uint32 color);
void draw_fill_rect(SDL_Surface *screen, position_t p1, position_t p2, Uint32 color);

void draw_text(SDL_Surface *screen, char *string, int size, position_t p, Uint32 color);

#endif // FILE_SDLfunctions_H